package com.moyu.oauth.client;

import com.moyu.common.core.domain.R;
import com.moyu.oauth.dto.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author 赵彦博
 * @Date 2024/11/29 19:35
 */
@FeignClient(name = "oasys-user")
public interface UserClient {

    @GetMapping("users/query/{username}")
    R<User> queryUser(@PathVariable("username") String username);
}
